<ul>
    <li>Download and install jdk1.7</li>
    <li>Download and install Apache Ant</li>
    <li>Download and install Tomcat7</li>
    <li>Download and install PostgreSQL<ul>
        <li>Create a database and a user that owns that database</li>
    </ul></li>
    <li>Copy src/facebook-app.properties.template to create src/facebook-app.properties</li>
    <li>Edit src/facebook-app.properties to have the app-secret from the facebook app iLender_LocalTest</li>
    <li>Copy src/database.properties.template to create src/database.properties</li>
    <li>Edit src/database.properties to have the login details for the PostgreSQL database<ul>
        <li>Notice that database.url needs to begin with "jdbc:", and end with "ilender"</li>
    </ul></li>
    <li>Run "ant resolve-dependencies" from the root folder of the iLender repository</li>
    <li>Run "ant compile" from the root folder of the iLender repository</li>
    <li>Run "ant migrate" from the root folder of the iLender repository</li>

    <li><h3>Configure Tomcat:</h3><ul>
        <li><span style="color:red">Note for Windows:</span> to interact with
        files in the Tomcat installation folder, you have to do it as admin. To
        edit text files as admin, you need to right-click on the text
        editor(either in the start menu, on the desktop, or directly where it
        is installed) and open it with <i>Run as Administrator</i>. Same for
        the command line.</li>
        <li>Configure Tomcat to use the app folder of this repository as a
        webapp named "cat", by putting a link to the app folder in Tomcat's
        "webapps" folder and naming it "cat".<br/>
        Note that on Windows(Vista and later), you need to use the <i>mklink</i>
        command with the <i>/d</i> flag to create the link. A drag&amp;drop
        link won't cut it.</li>
        <li>Configure Tomcat to automaticall reload your code, by adding
        <i>reloadable="true"</i> to the root <i>Context</i> element of it's
        <i>context.xml</i> file</li>
        <li>Configure Tomcat to use SSL(based on
        <a href="http://robertmarkbramprogrammer.blogspot.co.il/2011/09/get-https-to-work-for-localhost-on.html">this guide</a>):<ul>
            <li>Create the server's private key:<ul>
                <li><i>Windows</i>: "%JAVA_HOME%\bin\keytool" -genkey -alias tomcat -keyalg RSA</li>
                <li><i>Linux</i>: $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA</li>
            </ul></li>
            <li>Choose a keystore password(remember it!). The default(according to
            most tutorials) is "<i>changeit</i>", and I don't think there is a
            reason to change it for a local server.</li>
            <li style="font-weight:bold;font-size:20px">For the question "What is your first and last name?" you must answer "<i>localhost</i>"!</li>
            <li>answer the other questions.</li>
            <li>For the key password, you must choose the same password as the
            keystore password.</li>
            <li>a "<i>.keystore</i>" file should be created in your home directory:<ul>
                <li><i>C:\Users\USERNAME\.keystore</i> on Windows.</li>
                <li><i>/home/USERNAME/.keystore</i> on Linux</li>
            </ul></li>
            <li>Edit your "<i>server.xml</i>" file(should be under the Tomcat
            installation on <i>Windows</i> and in <i>/etc/tomcat7/</i> on
            <i>Linux</i>:<ul>
                <li>Look for the tag that begins with &lt;Connector port="8443"... and uncomment it</li>
                <li>Add the attribute <i>keystoreFile</i> with the path to your "<i>.keystore</i>" file</li>
                <li>Add the attribute <i>keystorePass</i> with the keystore password you have chosen</li>
            </ul></li>
        </ul></li></ul></li>

    <li>Run tomcat</li>
    <li>Go to <a href="https://localhost:8443">your Tomcat's SSL homepage</a>,
    and confirm the certificate for this domain with your browser</li>
    <li>Go to <a href="http://apps.facebook.com/ilender_local-test/">the facebook local-test application</a></li>
    <li>???</li>
    <li>PROFIT!</li>
</ul>
